/**
* Created by ren on 2017/1/17.
*/
<template>
  <div class='dingTouDetail moreJSJDetail'>
    <div class="item" v-if="data!==''">
      <div>
        <span style="font-size: 16px;color:#333333;">{{data.productName}}</span><img src="../../assets/share.png"
                                                                                     @click="share(data.orderNo)"
                                                                                     style="float:right;cursor:pointer;">
      </div>
      <div class="pesc">
        <div><label>定投时间：</label><span>{{data.startTime.substr(0,10)}}</span></div>
        <div><label>定投周期：</label><span v-if="data.putinType==='day'"> 日定投</span>
          <span v-if="data.putinType==='month'">月定投</span>
          <span v-if="data.putinType==='week'">周定投</span>
          <span v-if="data.putinType==='year'">年定投</span></div>
        <div><label>定投克数：</label><span>{{(data.weight/1000).toFixed(2)}}</span></div>
        <div><label>到期日：</label><span>{{data.validatyDate.substr(0,10)}}</span></div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'dingTouDetail',
    components: {},
    data: function () {
      return {
        data: ''
      }
    },
    methods: {
      share: function (orderNo) {
        this.$router.push({name: 'moreShare', params: {orderNo: orderNo}})
      }
    },
    mounted: function () {
      this.data = JSON.parse(this.$cookie.get('dt_detail'))
    }
  }
</script>
